import Vue from 'vue'
import Router from 'vue-router'
import Mymodel from "@/views/Mymodel";

Vue.use(Router)

const router = new Router({
    routes: [
        {path:"/home",component:()=>import("@/views/Home")},
        {path:"/page",component:()=>import("@/views/Page") },
        {path:"/pro",component:()=>import("@/views/Production") },
        { path: '/', redirect: '/login'},
        { path:"/login", component:()=>import("../views/Login")},
        { path:"/start", component:()=>import("../views/Start")},
        { path:"/map", component:()=>import("../views/Map")},
        { path:"/test", component:()=>import("../views/test.vue")},
        {
            path:"/mymodel",
            component:Mymodel,
            children:[
                {
                    path:"/",
                    redirect:'/user'
                },
                {
                    path:"/down",
                    component:()=>import("../components/min/lownDown")
                },
                {
                    path:"/plot",
                    component:()=>import("../components/min/plot")
                },
                {
                    path:"/user",
                    component:()=>import("../components/min/userInput")
                },
                {
                    path:"/eval",
                    component:()=>import("../components/min/Evaluation")
                }
            ]
        },
    ]
});

export default router


